import request from '@/utils/request'

// 查询用户操作列表
export function listOpt(query) {
  return request({
    url: '/customer/opt/list',
    method: 'get',
    params: query
  })
}

// 查询用户操作详细
export function getOpt(id) {
  return request({
    url: '/customer/opt/' + id,
    method: 'get'
  })
}

// 新增用户操作
export function addOpt(data) {
  return request({
    url: '/customer/opt',
    method: 'post',
    data: data
  })
}

// 修改用户操作
export function updateOpt(data) {
  return request({
    url: '/customer/opt',
    method: 'put',
    data: data
  })
}

// 删除用户操作
export function delOpt(id) {
  return request({
    url: '/customer/opt/' + id,
    method: 'delete'
  })
}

// 导出用户操作
export function exportOpt(query) {
  return request({
    url: '/customer/opt/export',
    method: 'get',
    params: query
  })
}